package com.sansui.blog.dao;

import com.sansui.blog.pojo.Blog;
import com.sansui.blog.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @name: ArchiveDao
 * @author: Sansui
 * @Software: IDEA
 * @Blog: https://www.cnblogs.com/sansui6/
 * @date: 2022-05-26 21:20
 **/
@Mapper
public interface ArchiveDao {


    /**
     * 获取博客对应年份信息
     * @return
     */
    List<String> getBlogYears();

    /**
     * 根据年份获取对应博客信息
     * @param year
     * @return
     */
    List<Blog> getBlogByYear(String year);


}
